package com.yc.cloud.common.oauth.wechat.service.impl;


import com.yc.cloud.common.oauth.wechat.dto.QRCodeDto;
import com.yc.cloud.common.oauth.wechat.dto.WxAccessTokenDto;
import com.yc.cloud.common.oauth.wechat.dto.WxUserInfoDto;
import com.yc.cloud.common.oauth.wechat.service.WxService;
import com.yc.cloud.common.oauth.wechat.utils.WxSubscriptionUtils;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.stereotype.Service;

/**
 * 订阅号
 */
@Service("wxSubscriptionServiceImpl")
@Slf4j
public class WxSubscriptionServiceImpl implements WxService {

    @Override
    public WxAccessTokenDto getAccessToken(String code, String appid, String appKey) {
        val result = WxSubscriptionUtils.getAccessToken(appid, appKey);
        log.info(result);
        return null;
    }

    @Override
    public String getOpenId(String code, String appid, String appKey) {
        return null;
    }

    @Override
    public WxUserInfoDto getUserInfo(String accessToken, String openId) {
        return null;
    }

    @Override
    public byte[] getQRCode(String accessToken, QRCodeDto qrCodeDto) {
        return null;
    }


}
